import { createApp } from 'vue';
import App from './App.vue';
import router from './router';
import store from './store';
import VueAxios from 'vue-axios';
import { Request } from './utils/request'
import Antd from 'ant-design-vue';
import 'ant-design-vue/dist/antd.css';
import VirtualCollection from 'vue-virtual-collection';

const app = createApp(App);

// 使用antd
app.use(Antd);

// 使用store
app.use(store);

// 使用router
app.use(router);

// 使用axios
app.use(VueAxios, Request.init());

// 使用vue-virtual-collection
app.use(VirtualCollection);

router.isReady().then(() => app.mount('#app'));
